﻿using Host;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Host.Modle;

namespace House.BLL
{
    public class SystemBLL
    {
        House.SystemDAL dal = new House.SystemDAL();
        /// <summary>
        /// 查询权限
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        public List<T> SelectEntity<T>()
        {
            return dal.SelectEntity<T>();
        }

        //#region 部门管理
        ///// <summary>
        ///// 获取部门表数据
        ///// </summary>
        ///// <returns></returns>
        //public List<Branch> bumen()
        //{
           
        //    return dal.bumen();
        //}
        ///// <summary>
        ///// 部门添加
        ///// </summary>
        ///// <param name="b"></param>
        ///// <returns></returns>
        //public int bmadd(Branch b)
        //{
        //    return dal.bmadd(b);
        //}
        ///// <summary>
        ///// 删除部门
        ///// </summary>
        ///// <param name="id"></param>
        ///// <returns></returns>
        //public int bmdel(int id)
        //{
        //    return dal.bmdel(id);
        //}
        ///// <summary>
        ///// 部门修改
        ///// </summary>
        ///// <param name="b"></param>
        ///// <returns></returns>
        //public int bmupd(Host.Branch b)
        //{
        //    return dal.bmupd(b);
        //}
        //#endregion

        //#region 角色管理
        ///// <summary>
        ///// 获取角色表数据
        ///// </summary>
        ///// <returns></returns>
        //public List<Role> js()
        //{
          
        //    return dal.js();
        //}
        ///// <summary>
        ///// 角色添加
        ///// </summary>
        ///// <param name="r"></param>
        ///// <returns></returns>
        //public int jsadd(Host.Role r)
        //{
        //    return dal.jsadd(r);
        //}
        ///// <summary>
        ///// 删除角色
        ///// </summary>
        ///// <param name="id"></param>
        ///// <returns></returns>
        //public int jsdel(int id)
        //{
        //    return dal.jsdel(id);
        //}
        ///// <summary>
        ///// 角色修改
        ///// </summary>
        ///// <param name="b"></param>
        ///// <returns></returns>
        //public int jsupd(Host.Role r)
        //{
        //    return dal.jsupd(r);
        //}
        ///// <summary>
        ///// 获取权限表数据
        ///// </summary>
        ///// <returns></returns>
        //public List<Host.Power> power()
        //{
        
        //    return dal.power();
        //}
        ///// <summary>
        ///// 批量分配权限
        ///// </summary>
        ///// <param name="arr"></param>
        ///// <param name="id"></param>
        ///// <returns></returns>
        //public int qxadd(string[] arr, int id)
        //{
           
        //    return dal.qxadd(arr,id);
        //}
        //#endregion

        //#region 员工管理
        ///// <summary>
        ///// 获取员工表数据
        ///// </summary>
        ///// <returns></returns>
        //public List<Host.Staff> staff()
        //{

        //    return dal.staff();
        //}
        ///// <summary>
        ///// 员工添加
        ///// </summary>
        ///// <param name="b"></param>
        ///// <returns></returns>
        //public int staffadd(Host.Staff s)
        //{

        //    return dal.staffadd(s);
        //}
        ///// <summary>
        ///// 删除员工
        ///// </summary>
        ///// <param name="id"></param>
        ///// <returns></returns>
        //public int staffdel(int id)
        //{
        //    return dal.staffdel(id);
        //}
        ///// <summary>
        ///// 修改员工信息
        ///// </summary>
        ///// <param name="s"></param>
        ///// <returns></returns>
        //public int staffupd(Host.Staff s)
        //{
        //    return dal.staffupd(s);
        //}

        //#endregion

        //#region 菜单管理
        ///// <summary>
        ///// 权限添加
        ///// </summary>
        ///// <param name="p"></param>
        ///// <returns></returns>
        //public int qxadd(Host.Power p)
        //{
        //    return dal.qxadd(p);
        //}
        ///// <summary>
        ///// 删除权限
        ///// </summary>
        ///// <param name="id"></param>
        ///// <returns></returns>
        //public int qxdel(int id)
        //{
        //    return dal.qxdel(id);
        //}
        ///// <summary>
        ///// 权限修改
        ///// </summary>
        ///// <param name="b"></param>
        ///// <returns></returns>
        //public int qxupd(Host.Power p)
        //{
        //    return dal.qxupd(p);
        //}
        //#endregion

        //#region 字典管理
        ///// <summary>
        ///// 获取字典表数据
        ///// </summary>
        ///// <returns></returns>
        //public List<Host.Wordbook> word()
        //{
         
        //    return dal.word();
        //}
        ///// <summary>
        ///// 字典添加
        ///// </summary>
        ///// <param name="b"></param>
        ///// <returns></returns>
        //public int wordadd(Host.Wordbook w)
        //{
        //    return dal.wordadd(w);
        //}
        ///// <summary>
        ///// 字典数据删除
        ///// </summary>
        ///// <param name="id"></param>
        ///// <returns></returns>
        //public int worddel(int id)
        //{
        //    return dal.worddel(id);
        //}
        ///// <summary>
        ///// 字典数据修改
        ///// </summary>
        ///// <param name="b"></param>
        ///// <returns></returns>
        //public int wordupd(Host.Wordbook w)
        //{
        //    return dal.wordupd(w);
        //}
        //#endregion
    }
}
